export type SendInfoType = "untoken" | "register" | "damreadall" | "EquipInfoNow" | "ModbusReg" | "sync" | "damread" | "damopr" | "loraopr" | "CRFParamMaster" | "CRFLoraParam" | "CRFConfigKTCV2" | "CRFLoraTiming" | "JsonMsg"; // 发送的数据类型
// 接收的数据
export type SocketData = {
    infotype: SendInfoType;
    sn?: string;
    info: any;
};
export type ModbusReg = {
    RqDly: number; // 请求延时
    addr: number; // 设备地址
    code: number; // 指令代码（3：手动读取结果、16：写入反馈）
    regnum: number; // 寄存器数量
    regstart: number; // 寄存器起始地址
    sn: string;
    strinfo: string; // 通讯原始信息，解析前原始数据包信息
    teamsn: string;
    vbyte: string; // 通讯数据信息，收发的数据部分
};
export type JsonMsg = {
    msginfo: string;
    msgtoken: string;
    msgtype: "alarm";
};
export type LoraCommParamsSocketData = {
    info: Equip.LoraCommParams;
    infotype: "CRFParamMaster" | "CRFLoraParam";
    sn: string;
};
export type LoraWorkParamsSocketData = {
    info: Equip.LoraWorkParams;
    infotype: "CRFConfigKTCV2";
    sn: string;
};
export type LoraTimeParamsSocketData = {
    info: Equip.LoraTimingParams;
    infotype: "CRFLoraTiming";
    sn: string;
};
